<?php

$con=mysqli_connect("localhost","root","admin");
// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }

// Create table
$sql= "CREATE TABLE HOPEWw.Training_Sessions(
  session_ID INT NOT NULL AUTO_INCREMENT,
  session_Date DATE NOT NULL,
  session_Type VARCHAR (40) NOT NULL,
  emp_ID INT NOT NULL,
 PRIMARY KEY (session_ID,session_Date) 

   )";
// Execute query
if (mysqli_query($con,$sql))
  {
  echo "Table Training_Sessions created successfully";
  }
else
  {
  echo "Error creating table: " . mysqli_error($con);
  }
?>
